/*
 * @Author: yangni
 * @Date: 2023-09-07 16:12:46
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2024-04-10 14:54:32
 * @Description: 空调详情页
 */
import 'package:get/get.dart';
import 'package:yt_devops/pages/devices/device_tab/model/device_item_model.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/utils/formats.dart';
import 'package:yt_devops/utils/self_develop_formats.dart';

class AirConditionDetailModel {
  List<DetailItemModel> controlItems = [
    DetailItemModel(
      label: 'siteMonitor.indoorFanSwitch'.tr, // '室内风机开关',
      field: 'IndoorFanSwitch',
    ),
    DetailItemModel(
      label: 'siteMonitor.compressorSwitch'.tr, // '压缩机开关',,
      field: 'CompressorSwitch',
    ),
    DetailItemModel(
      label: 'siteMonitor.electricHeatingSwitch'.tr, //'电加热开关',
      field: 'ElectricHeatingSwitch',
    ),
    DetailItemModel(
      label: 'siteMonitor.bulletinAlarmSwitch'.tr, // '公告告警开关',
      field: 'AnnouncementAlarmSwitch',
    ),
    DetailItemModel(
      label: 'siteMonitor.refrigeratedCondition'.tr, //  '制冷状态',
      field: 'CoolingState',
    ),
    DetailItemModel(
      label: 'siteMonitor.heatingCondition'.tr, //'制热状态',
      field: 'HeatingState',
    ),
    DetailItemModel(
      label: 'siteMonitor.dehumidificationCondition'.tr, //'除湿状态',
      field: 'DehumidificationState',
    ),
    DetailItemModel(
      label: 'siteMonitor.airSupplyState'.tr, // '送风状态',
      field: 'AirSupplyStatus',
    ),
    DetailItemModel(
      label: 'siteMonitor.standBy'.tr, // '待机状态',
      field: 'PositionInReadiness',
    ),
    DetailItemModel(
      label: 'siteMonitor.airConditioningAlarmStatus'.tr, // '空调报警状态',
      field: 'AirConditioningAlarmStatus',
    ),
    DetailItemModel(
      label: 'siteMonitor.airConditioningUnitOperationStatus'.tr, //'空调机组运行状态',
      field: 'AirConditioningUnitOperationStatus',
    ),
  ];
  List<DetailItemModel> statusItems = [
    DetailItemModel(
      label: 'siteMonitor.returnAirHumidity'.tr, // '回风湿度',
      field: 'ReturnAirHumidity',
    ),
    DetailItemModel(
      label: 'siteMonitor.supplyAirTemperature'.tr, // '送风温度',
      field: 'SupplyAirTemperature',
    ),
    DetailItemModel(
      label: 'siteMonitor.condensingTemperature'.tr, // '冷凝温度',
      field: 'CondensingTemperature',
    ),
    DetailItemModel(
      label: 'siteMonitor.evaporationTemperature'.tr, // '蒸发温度',
      field: 'EvaporatingTemperature',
    ),
    DetailItemModel(
      label: 'siteMonitor.returnAirTemperature'.tr, //'回风温度',
      field: 'ReturnAirTemperature',
    ),
  ];

  // static List<DetailItemModel> statusNewItems = [
  //   DetailItemModel(
  //       label: 'siteMonitor.roomTemperature'.tr, // '室内温度',
  //       field: 'IndoorTemperature',
  //       ),
  //   DetailItemModel(
  //       label: 'siteMonitor.humidness'.tr, //'湿度',
  //       field: 'Humidity',
  //       format: Formates.ralateHumidityFormat),
  //   const DetailItemModel(
  //       label: '排气温度',
  //       field: 'ExhaustTemperature',
  //       ),
  //   DetailItemModel(
  //       label: 'siteMonitor.condensingTemperature'.tr, // '冷凝温度',
  //       field: 'CondensingTemperature',
  //       ),
  //   const DetailItemModel(
  //       label: '盘管温度', field: 'coilTemperature', ),
  //   const DetailItemModel(
  //       label: '室外温度',
  //       field: 'OutdoorTemperature',
  //       ),
  // ];

  // static List<DetailItemModel> paramsItems = [
  //   DetailItemModel(
  //       label: 'device.refrigerationPoint'.tr, //'制冷点'
  //       field: 'RefrigerationPoint',
  //       ),
  //   DetailItemModel(
  //       label: 'device.refrigerationDifference'.tr, // '制冷回差'
  //       field: 'CoolingReturnDifference',
  //       ),
  //   DetailItemModel(
  //       label: 'device.hotSpot'.tr, // '加热点'
  //       field: 'HeatingPoint',
  //       ),
  //   DetailItemModel(
  //       label: 'device.hotSpotDifference'.tr, //加热回差
  //       field: 'HeatingReturnDifference',
  //       ),
  //   DetailItemModel(
  //       label: 'device.dehumidiyPoint'.tr, // 除湿点
  //       field: 'DehumidificationPoint',
  //       ),
  //   DetailItemModel(
  //       label: 'device.dehumidiyDifference'.tr, // 除湿回差
  //       field: 'DehumidificationReturnDifference',
  //       ),
  //   DetailItemModel(
  //       label: 'device.highTemperaturePoint'.tr, // 高温点
  //       field: 'HighTemperaturePoint',
  //       ),
  //   DetailItemModel(
  //       label: 'device.cryogenicPoint'.tr, // 低温点
  //       field: 'LowTemperaturePoint',
  //       ),
  //   DetailItemModel(
  //       label: 'device.highHumidityPoint'.tr, // 高湿点
  //       field: 'HighHumidityPoint',
  //       ),
  //   DetailItemModel(
  //       label: 'device.internalFanStop'.tr, // 内风机停止点
  //       field: 'InternalFanStopPoint',
  //       ),
  //   DetailItemModel(
  //       label: 'device.highTemperatureOpen'.tr, // 高温开启值
  //       field: 'HighTemperatureOpeningValue',
  //       ),
  //   DetailItemModel(
  //       label: 'device.highTemperatureClosed'.tr, //高温关闭值
  //       field: 'HighTemperatureShutdownValue',
  //       ),
  //   DetailItemModel(
  //       label: 'device.lowTemperatureOpen'.tr, //低温开启值
  //       field: 'LowTemperatureOpeningValue',
  //       ),
  //   DetailItemModel(
  //       label: 'device.lowTemperatureClosed'.tr, //低温关闭值
  //       field: 'LowTemperatureShutdownValue',
  //       ),
  // ];

  // static List<DetailItemModel> controlNewItems = [
  //   DetailItemModel(
  //       label: 'siteMonitor.indoorFanSwitch'.tr, //  '室内风机开关',
  //       field: 'IndoorFanSwitch',
  //       ),
  //   DetailItemModel(
  //       label: 'siteMonitor.compressorSwitch'.tr, // '压缩机开关',,
  //       field: 'CompressorSwitch',
  //       ),
  //   DetailItemModel(
  //       label: 'siteMonitor.electricHeatingSwitch'.tr, //'电加热开关',
  //       field: 'ElectricHeatingSwitch',
  //       ),
  //   const DetailItemModel(
  //       label: '外风机开关',
  //       field: 'ExternalFanSwitch',
  //       ),
  //   DetailItemModel(
  //       label: 'siteMonitor.airConditioningAlarmStatus'.tr, // '空调报警状态',
  //       field: 'AirConditioningAlarmStatus',
  //       format: SelfDevelopFormate.faultFormat),
  //   DetailItemModel(
  //       label:
  //           'siteMonitor.airConditioningUnitOperationStatus'.tr, //'空调机组运行状态',
  //       field: 'AirConditioningUnitOperationStatus',
  //       format: SelfDevelopFormate.airsetFormat),
  // ];
  List<DetailItemModel> runItems = [
    DetailItemModel(
      label: '${ResKey.runningTimeFrame.tr}1',
      field: 'runningTimeFrame1',
    ),
    DetailItemModel(
      label: '${ResKey.runningTimeFrame.tr}2',
      field: 'runningTimeFrame2',
    ),
    DetailItemModel(
      label: '${ResKey.runningTimeFrame.tr}3',
      field: 'runningTimeFrame3',
    ),
    DetailItemModel(
      label: '${ResKey.runningTimeFrame.tr}4',
      field: 'runningTimeFrame4',
    ),
    DetailItemModel(
      label: '${ResKey.runningTimeFrame.tr}5',
      field: 'runningTimeFrame5',
    ),
  ];
}
